set terminal png

set output "doc/gfx/tmul_karatsuba_limbs.png"
set ylabel "Number of Limbs"
set xlabel "Number of Digits"
set title "Number of Digits vs Number of Limbs"
plot "bin/integer_tmul_karatsuba.dat" using 1:2 notitle with linespoints

set output "doc/gfx/tmul_karatsuba_counts.png"
set ylabel "Counts"
set xlabel "Number of Limbs"
set title "Number of Limbs vs Instruction and Cycle Counts"
plot "bin/integer_tmul_karatsuba.dat" using 2:3 title "Instruction Count" with linespoints,"bin/integer_tmul_karatsuba.dat" using 2:4 title "Cycle Count" with linespoints


set output "doc/gfx/tmul_karatsuba_dcm.png"
set ylabel "DCMs"
set xlabel "Number of Limbs"
set title "Number of Limbs vs. L1 Data Cache Misses(DCMs)"
plot "bin/integer_tmul_karatsuba.dat" using 2:5 title "L1 DCMs" with linespoints,"bin/integer_tmul_karatsuba.dat" using 2:6 title "L2 DCMs" with linespoints
